import Vue from 'vue'
import Router from 'vue-router'
import index from '../components/index'
import settings from "../components/settings";
import search from "../components/search";
import myMessage from "../components/myMessage";
import allType from "../components/allType";
import newProduct from "../components/newProduct";
import hotProduct from "../components/hotProduct";
import discountProduct from "../components/discountProduct";
import myAddress from "../components/myAddress";
import addAddress from "../components/addAddress";
import myOrder from "../components/myOrder";
import type from "../components/type";
import productDetails from "../components/productDetails";
import messageModify from "../components/messageModify";
import shoppingCart from "../components/shoppingCart";

Vue.use(Router)

export default new Router({
  mode: 'hash',
  routes: [
    {
      path: '/',
      name: 'index',
      component: index
    },
    {
      path: '/settings',
      name: 'settings',
      component: settings
    },
    {
      path: '/search',
      name: 'search',
      component: search
    },
    {
      path: '/myMessage',
      name: 'myMessage',
      component: myMessage
    },
    {
      path: '/allType',
      name: 'allType',
      component: allType
    },
    {
      path: '/newProduct',
      name: 'newProduct',
      component: newProduct
    },
    {
      path: '/hotProduct',
      name: 'hotProduct',
      component: hotProduct
    },
    {
      path: '/discountProduct',
      name: 'discountProduct',
      component: discountProduct
    },
    {
      path: '/myAddress',
      name: 'myAddress',
      component: myAddress
    },
    {
      path: '/addAddress',
      name: 'addAddress',
      component: addAddress
    },
    {
      path: '/myOrder',
      name: 'myOrder',
      component: myOrder
    },
    {
      path: '/type',
      name: 'type',
      component: type
    },
    {
      path: '/productDetails',
      name: 'productDetails',
      component: productDetails
    },
    {
      path: '/messageModify',
      name: 'messageModify',
      component: messageModify
    },
    {
      path: '/shoppingCart',
      name: 'shoppingCart',
      component: shoppingCart
    }
  ]
})
